import { request } from "@/api/request";

export function register(data) {
  return request(
    {
      url: "/web/user/register",
      method: "post",
      data,
    },
    false,
    "MessageBox"
  );
}

export function login(data) {
  return request(
    {
      url: "/web/login",
      method: "post",
      data,
    },
    false,
    "MessageBox"
  );
}

//退出登录
export function logOut() {
  return request(
    {
      url: "/web/logout",
      method: "delete",
    },
    true,
    "MessageBox"
  );
}

//获取协议内容
export function agreement(data) {
  return request(
    {
      url: "/web/sys/agreement",
      method: "post",
      data,
    },
    false,
    "MessageBox"
  );
}



export function getCode(phone) {
  return request(
    {
      url: "/web/sms/code/" + phone,
      method: "get",
    },
    false,
    "MessageBox"
  );
}

export function getPublicKey() {
  return request(
    {
      url: "/web/publicKey",
      method: "get",
    },
    false
  );
}

export function getMemberInfo() {
  return request(
    {
      url: "/web/user/accountInfo",
      method: "get",
    },
    true
  );
}

export function getAccountHomeInfo() {
  return request(
    {
      url: "/web/user/accountInfo",
      method: "get",
    },
    true
  );
}

// 获取个人中心面板预订竞价数据
export function getRushInfo() {
  return request(
    {
      url: "/web/user/rushInfo",
      method: "get",
    },
    true
  );
}

// 我的预订
export function getMyBooking(data) {
  return request(
    {
      url: "/web/booking/userBooking",
      method: "post",
      data,
    },
    true
  );
}

// 删除预订提醒
export function bookingCancel(params) {
  return request(
    {
      url: "/web/booking/cancel",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}

// 我的竞价
export function getMyBidding(data) {
  return request(
    {
      url: "/web/bidding/userRecords",
      method: "post",
      data,
    },
    true
  );
}

// 批量出价
export function bidBatch(data) {
  return request(
    {
      url: "/web/bidding/bidBatch",
      method: "post",
      data,
    },
    true
  );
}

// 我的得标
export function getMyWinnings(data) {
  return request(
    {
      url: "/web/bidding/biddingList",
      method: "post",
        data,
    },
    true
  );
}

// 预订提醒列表
export function getRemindList(params) {
  return request(
    {
      url: "/web/bidding/remind/list",
      method: "get",
      params,
    },
    true
  );
}

// 添加预订提醒
export function addRemind(data) {
  return request(
    {
      url: "/web/bidding/remind/add",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 删除预订提醒
export function delRemind(id) {
  return request(
    {
      url: "/web/bidding/remind/" + id,
      method: "delete",
    },
    true,
    "MessageBox"
  );
}

// 添加预订提醒
export function editRemind(data) {
  return request(
    {
      url: "/web/bidding/remind/edit",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 账户信息
export function getAmountInfo() {
  return request(
    {
      url: "/web/user/accountInfo",
      method: "get",
    },
    true
  );
}

// 获取提现记录
export function getCashOutRecord(params) {
  return request(
    {
      url: "/web/withdrawal/pageList",
      method: "get",
      params,
    },
    true
  );
}

// 取消提现申请
export function cancelCashOut(id) {
  return request(
    {
      url: "/web/withdrawal/" + id,
      method: "patch",
    },
    true,
    "MessageBox"
  );
}

// 获取财务类型
export function getFinancialType() {
  return request(
    {
      url: "/web/user/financialType",
      method: "get",
    },
    true
  );
}

// 查询子账号
export function getCid() {
  return request(
    {
      url: "/web/user/cid",
      method: "get",
    },
    true
  );
}

// 获取资金明细
export function getAccountDetail(data) {
  return request(
    {
      url: "/web/user/accountDetail",
      method: "post",
        data,
    },
    true
  );
}

// 获取冻结类型
export function getFreezeType() {
  return request(
    {
      url: "/web/user/freezeType",
      method: "get",
    },
    true
  );
}

// 获取资金明细
export function getFreezeDetail(params) {
  return request(
    {
      url: "/web/user/freezeDetail",
      method: "get",
      params,
    },
    true
  );
}

// 过滤批量预订域名
export function batchBookingfilter(data) {
  return request(
    {
      url: "/web/booking/filter",
      method: "post",
      data,
    },
    true
  );
}

// 生产单个预订订单
export function createBookingOrder(data) {
  return request(
    {
      url: "/web/order/booking/create",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取省市区
export function getAddress() {
  return request(
    {
      url: "/web/user/address",
      method: "get",
    },
    true
  );
}

// 获取银行名称
export function getBankName(number) {
  return request(
    {
      url: "/web/bankCard/" + number,
      method: "get",
    },
    true
  );
}

// 添加银行卡
export function addBankCard(data) {
  return request(
    {
      url: "/web/bankCard",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取银行卡列表
export function getBankCardList(params) {
  return request(
    {
      url: "/web/bankCard",
      method: "get",
      params,
    },
    true
  );
}

// 获取银行卡列表
export function deleteBankCard(id) {
  return request(
    {
      url: "/web/bankCard/" + id,
      method: "delete",
    },
    true,
    "MessageBox"
  );
}

// 获取身份认证信息
export function getIdentify() {
  return request(
    {
      url: "/web/user/safeInfo",
      method: "get",
    },
    true
  );
}

// 提交身份认证信息
export function submitIdentify(data) {
  return request(
    {
      url: "/web/certificates/user",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 付款
export function pay(data) {
  return request(
    {
      url: "/web/pay",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取订单状态
export function getOrderStatus(orderNo) {
  return request(
    {
      url: "/web/order/checkOrder/" + orderNo,
      method: "get",
    },
    true
  );
}

// 创建批量预订订单
export function createBatchOrder(data) {
  return request(
    {
      url: "/web/order/bookingBatch/create",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 修改用户信息
export function editUserInfo(data) {
  return request(
    {
      url: "/web/user/edit",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 上传图片
export function uploadImg(data) {
  return request(
    {
      url: "/web/upload/img",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取我的模板列表
export function getTemplateList(params) {
  return request(
    {
      url: "/web/domain/templates/list",
      method: "get",
      params,
    },
    true
  );
}

// 获取我的模板域名列表
export function getTemplatesDomain(params) {
  return request(
    {
      url: "/web/domain/templates/domainDetails",
      method: "get",
      params,
    },
    true
  );
}

// 获取模板过户记录列表
export function getTransferList(params) {
  return request(
    {
      url: "/web/domain/templates/pushList",
      method: "get",
      params,
    },
    true
  );
}

// 复制我的模板
export function getTemplateCopy(params) {
  return request(
    {
      url: "/web/domain/templates/copy",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}


// 修改模板名称
export function editTemplateName(data) {
  return request(
    {
      url: "/web/domain/templates/modifyName",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取注册商模板列表查询
export function getRegistrarList(params) {
  return request(
    {
      url: "/web/domain/templates/registrarList",
      method: "get",
      params,
    },
    true
  );
}

// 注册商模板同步
export function registrarSync(data) {
  return request(
    {
      url: "/web/domain/templates/registrarSync",
      method: "post",
        data,
    },
    true,
    "MessageBox"
  );
}

// 注册商模板邮箱详情
export function getRegistrarEmailInfo(params) {
  return request(
    {
      url: "/web/domain/templates/registrarEmailInfo",
      method: "get",
      params,
    },
    true
  );
}


// 注册商模板邮箱认证
export function registrarEmailCheck(params) {
  return request(
    {
      url: "/web/domain/templates/registrarEmailCheck",
      method: "get",
      params,
    },
    true
  );
}


// 注册商模板发送验证码
export function registrarEmailSend(params) {
  return request(
    {
      url: "/web/domain/templates/registrarEmailSend",
      method: "get",
      params,
    },
    true
  );
}


// 获取默认模板选择器选项
export function getTemplateSelectList(params) {
  return request(
    {
      url: "/web/domain/templates",
      method: "get",
      params,
    },
    true
  );
}

// 获取默认模板
export function getDefaultTemplate() {
  return request(
    {
      url: "/web/domain/templates/default",
      method: "get",
    },
    true
  );
}

// 设置默认模板
export function setDefaultTemplate(params) {
  return request(
    {
      url: "/web/domain/templates/default",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}

// 发送认证邮件
export function submitCertificatesEmail(params) {
  return request(
    {
      url: "/web/certificates/email",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取身份认证列表
export function getUserCertificatesList(params) {
  return request(
    {
      url: "/web/certificates/user",
      method: "get",
      params,
    },
    true
  );
}

// 删除身份认证
export function deleteUserCertificates(id) {
  return request(
    {
      url: "/web/certificates/user/" + id,
      method: "delete",
    },
    true,
    "MessageBox"
  );
}

// 获取企业认证列表
export function getCompanyCertificatesList(params) {
  return request(
    {
      url: "/web/certificates/enterprise",
      method: "get",
      params,
    },
    true
  );
}

// 删除企业认证
export function deleteCompanyCertificates(id) {
  return request(
    {
      url: "/web/certificates/enterprise/" + id,
      method: "delete",
    },
    true,
    "MessageBox"
  );
}

// 获取邮箱认证列表
export function getEmailCertificatesList(params) {
  return request(
    {
      url: "/web/certificates/email",
      method: "get",
      params,
    },
    true
  );
}

// 删除邮箱认证
export function deleteEmailCertificates(id) {
  return request(
    {
      url: "/web/certificates/email/" + id,
      method: "delete",
    },
    true,
    "MessageBox"
  );
}

// 获取我的认证信息
export function getMyCertificates() {
  return request(
    {
      url: "/web/certificates/authCount",
      method: "get",
    },
    true
  );
}

// 获取认证选项列表
export function getCertificatesSelectList() {
  return request(
    {
      url: "/web/certificates/authInfo",
      method: "GET",
    },
    true
  );
}

// 邮箱认证
export function checkEmailKey(params) {
  return request(
    {
      url: "/web/certificates/email/auth",
      method: "GET",
      params,
    },
    false
  );
}

// 添加模板
export function addTemplate(data) {
  return request(
    {
      url: "/web/domain/templates/save",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 模板过户
export function templatePush(data) {
  return request(
    {
      url: "/web/domain/templates/push",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 删除模板
export function deleteTemplate(id) {
  return request(
    {
      url: "/web/domain/templates/" + id,
      method: "delete",
    },
    true,
    "MessageBox"
  );
}

// 添加企业认证
export function addEnterpriseCertificates(data) {
  return request(
    {
      url: "/web/certificates/enterprise",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 修改密码
export function updatePwd(data) {
  return request(
    {
      url: "/web/user/updatePwd",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 发送确认身份的短信验证码
export function sendCode() {
  return request(
    {
      url: "/web/sms/sendCode",
      method: "get",
    },
    true,
    "MessageBox"
  );
}

// 验证确认身份的短信验证码
export function checkCode(data) {
  return request(
    {
      url: "/web/sms/verifyCode",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 修改手机号码
export function updatePhone(data) {
  return request(
    {
      url: "/web/user/updateMobile",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 修改邮箱
export function updateEmail(data) {
  return request(
    {
      url: "/web/user/updateEmail",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取提现比例
export function getCashOutLevel() {
  return request(
    {
      url: "/web/user/getLevel",
      method: "get",
    },
    true
  );
}

// 提现
export function createCashOut(data) {
  return request(
    {
      url: "/web/withdrawal/withdraw",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 充值
export function createRecharge(data) {
  return request(
    {
      url: "/web/payV2/recharge",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取购物车查询
export function getShoppingCart() {
  return request(
    {
      url: "/web/shoppingCart",
      method: "get",
    },
    true
  );
}

// 购物车分类查询
export function getShoppingCartByType(params) {
  return request(
    {
      url: "/web/shoppingCart/type",
      method: "get",
      params,
    },
    true
  );
}

// 添加到购物车
export function addToShoppingCart(data) {
  return request(
    {
      url: "/web/shoppingCart/add",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 从购物车中移除
export function deleteFromShoppingCart(data) {
  return request(
    {
      url: "/web/shoppingCart",
      method: "delete",
      data,
    },
    true,
    "MessageBox"
  );
}

// 域名检查
export function checkDomainWithToken(data) {
  return request(
    {
      url: "/web/domain/check",
      method: "post",
      data,
    },
    true
  );
}

// 购物车年限
export function changeCartCount(data) {
  return request(
    {
      url: "/web/shoppingCart/count",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 购物车下单
export function createCartOrder(data) {
  return request(
    {
      url: "/web/shoppingCart/order",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 登录日志
export function getLoginLog(params) {
  return request(
    {
      url: "/web/log",
      method: "get",
      params,
    },
    true
  );
}

// 忘记密码账号校验
export function forgetPwdVerify(params) {
  return request(
    {
      url: "/web/forgetPwdVerify",
      method: "get",
      params,
    },
    false,
    "MessageBox"
  );
}

// 忘记密码手机验证码校验
export function forgetPwdVerifySmsCode(params) {
  return request(
    {
      url: "/web/forgetPwdVerifySmsCode",
      method: "post",
      params,
    },
    false,
    "MessageBox"
  );
}

// 忘记密码修改密码
export function forgetPwdChange(data) {
  return request(
    {
      url: "/web/forgetPwdChange",
      method: "post",
      data,
    },
    false,
    "MessageBox"
  );
}

// 忘记密码修改密码
export function forgetPwdVerifyCode(verifyCode) {
  return request(
    {
      url: "/web/sms/verifyCode/" + verifyCode,
      method: "get",
    },
    false,
    "MessageBox"
  );
}

// 获取域名订单
export function getOrder(params) {
  return request(
    {
      url: "/web/order/pageListV2",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取订单详情
export function getOrderDetail(params) {
  return request(
    {
      url: "/web/order/orderDetail",
      method: "get",
      params,
    },
    true
  );
}

// 取消订单详情
export function cancelOrder(params) {
  return request(
    {
      url: "/web/order/cancelV2",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取域名DNS
export function getDNS(params) {
  return request(
    {
      url: "/web/domain/dns",
      method: "get",
      params,
    },
    true
  );
}

//批量查询DNS日志
export function getDNSLogs(params) {
  return request(
    {
      url: "/web/domain/dnsLogs",
      method: "get",
      params,
    },
    true
  );
}

// 查询DNS日志
export function getDNSLog(params) {
  return request(
    {
      url: "/web/domain/dnsLog",
      method: "get",
      params,
    },
    true
  );
}

// 设置DNS
export function setDNS(data) {
  return request(
    {
      url: "/web/domain/dns",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 设置DNS
export function dnsSubmit(data) {
    return request(
        {
            url: "/web/domain/dns/submit",
            method: "post",
            data,
        },
        true,
        "MessageBox"
    );
}

// 域名竞价支付
export function payForBidding(id) {
  return request(
    {
      url: "/web/bidding/pay/" + id,
      method: "patch",
    },
    true,
    "MessageBox"
  );
}

// 获取域名转入记录
export function getTransferInList(params) {
  return request(
    {
      url: "/web/domain/transferInto/pageList",
      method: "get",
      params,
    },
    true
  );
}

// 获取域名转入状态
export function getTransferInStatus(params) {
  return request(
    {
      url: "/web/domain/transferInto/queryStatus",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}

// 取消转入
export function deleteTransferIn(params) {
  return request(
    {
      url: "/web/domain/transferInto/cancel",
      method: "delete",
      params,
    },
    true,
    "MessageBox"
  );
}

// 保存转入
export function saveTransferIn(data) {
  return request(
    {
      url: "/web/domain/transferInto/save",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 修改转移码
export function editTransferCode(data) {
  return request(
    {
      url: "/web/domain/transferInto/editTransferCode",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 域名转出校验域名
export function verifyDomain(params) {
  return request(
    {
      url: "/web/domain/transferOut/verifyDomain",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}

// 域名转出校手机验证码
export function transferVerifyCode(data) {
  return request(
    {
      url: "/web/domain/transferOut/verifyCode",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 域名转出获取转移码
export function getTransferCode(params) {
  return request(
    {
      url: "/web/domain/transferOut/getTransferCode",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}


// 域名转出获取转移码
export function submitTransferCode(data) {
    return request(
        {
            url: "/web/domain/transferOut/submit",
            method: "post",
            data,
        },
        true,
        "MessageBox"
    );
}

// 域名转出重新获取转移码
export function getCodeAgain(params) {
  return request(
    {
      url: "/web/domain/transferOut/refreshCode",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取域名转出列表
export function getTransferOutList(params) {
  return request(
    {
      url: "/web/domain/transferOut/pageList",
      method: "get",
      params,
    },
    true
  );
}

// 同意域名转出
export function agreeTransferOut(params) {
  return request(
    {
      url: "/web/domain/transferOut/agree",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}

// 取消域名转出
export function deleteTransferOut(params) {
  return request(
    {
      url: "/web/domain/transferOut/cancel",
      method: "delete",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取域名转出状态
export function getTransferOutStatus(params) {
  return request(
    {
      url: "/web/domain/transferOut/queryStatus",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}

// 上传企业认证图片
export function uploadCompanyPhoto(data) {
  return request(
    {
      url: "/web/certificates/enterpriseCertificationUpload",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取发票类型
export function getInvoiceType() {
  return request(
    {
      url: "/web/invoice/type",
      method: "get",
    },
    true
  );
}

// 获取发票列表
export function getInvoiceList(params) {
  return request(
    {
      url: "/web/invoice/pageList",
      method: "get",
      params,
    },
    true
  );
}

// 获取发票金额数据
export function getInvoiceAmountTotal() {
  return request(
    {
      url: "/web/invoice/amountTotal",
      method: "get",
    },
    true
  );
}

// 获取申请发票列表
export function getInvoiceAmountList(params) {
  return request(
    {
      url: "/web/invoice/amountList",
      method: "get",
      params,
    },
    true
  );
}

// 获取发票信息列表
export function getInvoiceInfoList(params) {
  return request(
    {
      url: "/web/invoice/info/pageList",
      method: "get",
      params,
    },
    true
  );
}

// 提交发票信息
export function submitSaveInvoiceInfo(data) {
  return request(
    {
      url: "/web/invoice/info/save",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 获取发票信息详情
export function getInvoiceInfo(params) {
  return request(
    {
      url: "/web/invoice/info/get",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取全部发票信息列表
export function getAllInvoiceInfoList() {
  return request(
    {
      url: "/web/invoice/info/simple",
      method: "get",
    },
    true
  );
}

// 获取申请发票默认信息
export function getDefaultInfo() {
  return request(
    {
      url: "/web/invoice/default",
      method: "get",
    },
    true
  );
}

// 申请发票提交
export function applyInvoice(data) {
  return request(
    {
      url: "/web/invoice/apply",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 申请发票取消
export function cancelInvoice(params) {
  return request(
    {
      url: "/web/invoice/cancel",
      method: "post",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取申请发票详情
export function getInvoiceDetail(params) {
  return request(
    {
      url: "/web/invoice/getDetail",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}

// 添加到购物车
export function domainRestoreCreate(data) {
  return request(
    {
      url: "/web/order/domainRestoreCreate",
      method: "post",
      params: data,
    },
    true,
    "MessageBox"
  );
}

// 申请成为代理商
export function applytoAgent(data) {
  return request(
    {
      url: "/web/agent/add",
      method: "post",
      data: data,
    },
    true,
    "MessageBox"
  );
}

// 获取申请列表
export function getApplyData(params) {
  return request(
    {
      url: "/web/agent/pageList",
      method: "get",
      params,
    },
    true
  );
}

//修改申请列表
export function editApplyData(data) {
  return request(
    {
      url: "/web/agent/edit",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 删除申请列表
export function deleteAgent(params) {
  return request(
    {
      url: "/web/agent/del",
      method: "delete",
      params,
    },
    true,
    "MessageBox"
  );
}

// 代理商模拟登录管理系统
export function getagentLogin(data) {
  return request(
    {
      url: "/web/user/agentMock",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 买家的一口价
export function getFixBuy(data) {
  return request(
    {
      url: "/web/fix/buy",
      method: "get",
      params: data,
    },
    true,
    "MessageBox"
  );
}

//卖家的下架
export function getFixDown(data) {
  return request(
    {
      url: "/web/fix/down",
      method: "post",
      params: data,
    },
    true,
    "MessageBox"
  );
}


//获取转移码
export function getAuthCode(params) {
    return request(
        {
            url: "/web/fix/authCode",
            method: "get",
            params: params,
        },
        true,
        "MessageBox"
    );
}


// 卖家的上架
export function getFixUp(data) {
  return request(
    {
      url: "/web/fix/up",
      method: "post",
      params: data,
    },
    true,
    "MessageBox"
  );
}

// 卖家编辑一口价
export function fixEdit(data) {
  return request(
    {
      url: "/web/fix/edit",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 提交一口价
export function fixSubmit(data) {
  return request(
    {
      url: "/web/fix/submit",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 卖家的一口价
export function getFixSale(params) {
  return request(
    {
      url: "/web/fix/sale",
      method: "get",
      params,
    },
    true,
    "MessageBox"
  );
}

// 获取推荐的一口价

export function getTopList(data) {
  return request(
    {
      url: "/web/fix/topList",
      method: "post",
      params: data,
    },
    false,
    "MessageBox"
  );
}

export function bopBatchEdit(data) {
  return request(
    {
      url: "/web/fix/editBatch",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}

// 消息通知
export function messageTemplates() {
  return request(
    {
      url: "/web/messageTemplates",
      method: "get",
    },
    true,
    "MessageBox"
  );
}

export function saveMessageTemplates(data) {
  return request(
    {
      url: "/web/messageTemplates",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}


// 站内信类型
export function mailSiteType() {
  return request(
    {
      url: "/web/messageTemplates/siteType",
      method: "get",
    },
    true,
    "MessageBox"
  );
}

// 获取站内信列表
export function mailSiteList(data) {
  return request(
    {
      url: "/web/messageTemplates/siteList",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}


// 站内信设置已读
export function mailSiteRead(data) {
  return request(
    {
      url: "/web/messageTemplates/siteRead",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}



// 删除站内信
export function mialSiteDel(data) {
  return request(
    {
      url: "/web/messageTemplates/siteDel",
      method: "post",
      data,
    },
    true,
    "MessageBox"
  );
}


// 例行维护公告
export function serverUpdate() {
  return request(
    {
      url: "/web/content/serverUpdate",
      method: "post",
    },
    true,
    "MessageBox"
  );
}


// 子账号余额
export function getAccountInfoChild() {
    return request(
        {
            url: "/web/user/accountInfoChild",
            method: "post",
        },
        true,
        "MessageBox"
    );
}
